import { http } from '@/utils/http'

//首页list
export const GetModeList = (data: any) => {
  return http({
    url: '/Common/GetModeList',
    method: 'POST',
    data,
  })
}
//首页tab
export const reqGetTopicList = () => {
  return http({
    url: '/Common/GetTopicList',
    method: 'POST'
  })
}
//佣金信息
export const GetCommInfo = () => {
  return http({
    url: '/user/GetCommInfo',
    method: 'POST'
  })
}
// 历史记录
export const GetUserImageRecord = (data: any) => {
  return http({
    url: '/User/GetUserImageRecord',
    method: 'POST',
    data,
  })
}
// 删除图片信息
export const DeleteImageInfo = (data: any) => {
  return http({
    url: '/User/DeleteImageInfo',
    method: 'POST',
    data,
  })
}
// 微信小程序登录
export const WxUserLogin = (data: any) => {
  return http({
    url: '/Login/WxUserLogin',
    method: 'POST',
    data,
  })
}
// 获取用户信息
export const GetUserInfo = () => {
  return http({
    url: '/user/GetUserInfo',
    method: 'POST'
  })
}
// 修改用户头像、昵称
export const EditUsersInfo = (data: any) => {
  return http({
    url: '/user/EditUsersInfo',
    method: 'POST',
    data,
  })
}
// 商品列表
export const GetAppletProdtceList = () => {
  return http({
    url: '/Common/GetAppletProdtceList',
    method: 'POST',
  })
}
// 微信支付
export const WxPay = (data: any) => {
  return http({
    url: '/Pay/WxPay',
    method: 'POST',
    data,
  })
}
// 查询订单状态
export const GetOrderStatus = (data: any) => {
  return http({
    url: '/Pay/GetOrderStatus',
    method: 'POST',
    data,
  })
}
// 话题列表
export const GetTopicList = (data: any) => {
  return http({
    url: '/Common/GetTopicList',
    method: 'POST',
    data,
  })
}
// 人脸检测
export const CheckFace = (data: any) => {
  return http({
    url: '/Common/CheckFace',
    method: 'POST',
    data,
  })
}
// bass64转图片
export const UploadImagetep = (data: any) => {
  return http({
    url: '/Common/UploadImagetep',
    method: 'POST',
    data,
  })
}
// 生成任务
export const CreateQuest = (data: any) => {
  return http({
    url: '/ConfyUI/CreateQuest',
    method: 'POST',
    data,
  })
}
// 获取做图消耗点数
export const GetSumPunti = (data: any) => {
  return http({
    url: '/Common/GetSumPunti',
    method: 'POST',
    data,
  })
}
//下载图片
export const DownImg = (data: any) => {
  return http({
    url: '/user/DownImg',
    method: 'POST',
    data
  })
}
//下载图片
export const QxDownImg = (data: any) => {
  return http({
    url: '/user/QxDownImg',
    method: 'POST',
    data
  })
}
//获取分享二维码
export const GetWxaCode = () => {
  return http({
    url: '/user/GetWxaCode',
    method: 'POST',
  })
}